import { type IVxueColumnConfig, tableUtils } from '@/components/table'
import type { ICustomer } from './type'
export * from './type'

const columnConfig: IVxueColumnConfig<ICustomer>[] = [
  {
    field: 'checkbox',
    type: 'checkbox',
    width: 50
  },
  {
    field: 'customerNo',
    title: '客户编号'
  },
  {
    field: 'customerName',
    title: '客户名称'
  },
  {
    field: 'customerStatus',
    title: '客户状态',
    slot: 'customerStatus',
    width: 130
  },
  {
    field: 'agentIds',
    title: '代理数',
    slot: 'agentIds',
    width: 100
  },
  {
    field: 'createTime',
    title: '创建时间'
  },
  {
    field: 'userList',
    title: '维护人员',
    slot: 'userList'
  }
]

tableUtils.setChecked(columnConfig)

export { columnConfig }
